|
There's more than one way to do it (TMTOWTDI or TIMTOWTDI, pronounced ''Tim Toady'') is a Perl programming motto. The language was designed with this idea in mind, in that it “doesn't try to tell the programmer how to program.” As proponents of this motto argue, this philosophy makes it easy to write concise statements like or the more traditional or even the more verbose: use English; if ($INPUT_LINE_NUMBER >= 1 and $INPUT_LINE_NUMBER <= 3 or $ARG =~ m/match/) This motto has been very much discussed in the Perl community, and eventually extended to There’s more than one way to do it, but sometimes consistency is not a bad thing either (TIMTOWTDIBSCINABTE, pronounced ''Tim Toady Bicarbonate'').〔(【引用サイトリンク】 title=Can EPO (or TPF) tame TIMTOWTDI? )〕 In contrast, part of the Zen of Python is, "There should be one-- and preferably only one --obvious way to do it."〔https://www.python.org/dev/peps/pep-0020/〕 == See also == *Extensible programming *Don't repeat yourself *You aren't gonna need it 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「there's more than one way to do it」の詳細全文を読む スポンサード リンク
|